-- GENERATED SPELL FOR [Yarzill the Merc] --


function spell0_23141(pUnit, Event) --@Flight of the Netherwing,n/a--
pUnit:FullCastSpellOnTarget(41533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23141', 543, 1)
end

function spell1_23141(pUnit, Event) --@Flight of the Netherwing,n/a--
pUnit:FullCastSpellOnTarget(41540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23141', 574, 1)
end

function Sorts_23141(pUnit, Event)
local choix_sorts_23141 = math.random(0, 1)
if choix_sorts_23141 == 0 then
pUnit:RegisterEvent('spell0_23141', 1, 1)
end
if choix_sorts_23141 == 1 then
pUnit:RegisterEvent('spell1_23141', 1, 1)
end
end

function mob23141_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23141', math.random(1500, 3000), 1)
end

function mob23141_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23141_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23141_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23141, 1, 'mob23141_Action')
RegisterUnitEvent(23141, 2, 'mob23141_Leave')
RegisterUnitEvent(23141, 3, 'mob23141_Kill')
RegisterUnitEvent(23141, 4, 'mob23141_Die')
